package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 医院信息
 * </p>
 *
 * @author xglhappy
 * @since 2022-04-14
 */
@Getter
@Setter
  @TableName("health_sys_hospital")
@ApiModel(value = "Hospital对象", description = "医院信息")
public class Hospital implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("名称")
      private String name;

      @ApiModelProperty("简称")
      private String abbreviation;

      @ApiModelProperty("联系人")
      private String contacts;

      @ApiModelProperty("联系电话")
      private String phone;

      @ApiModelProperty("联系地址")
      private String address;

      @ApiModelProperty("上层医院")
      private Long pid;

      @ApiModelProperty("上层医院")
      private Long shopid;

      @ApiModelProperty("上层医院名称")
      @TableField(exist = false)
      private String pName;

      @ApiModelProperty("医院层级")
      private String comcode;

}
